import uniFetch from "@/utils/uni-fetch";

/*获取任务列表的接口*/
export const fetchTaskListAPI = (params) => uniFetch.get("/driver/tasks/list", params);
/*延迟提货的接口*/
export const delayTaskAPI = (data) => uniFetch.put("/driver/tasks/delay", data);
/*提货的接口*/
export const takeDeliveryAPI = (data) => uniFetch.post("/driver/tasks/takeDelivery", data);
/*上报异常的接口*/
export const reportExceptionAPI = (data) => uniFetch.post("/driver/tasks/reportException", data);
/*交付的接口*/
export const deliverTaskAPI= (data) => uniFetch.post("/driver/tasks/deliver", data);
/*回车登记的接口*/
export const truckRegistrationAPI=(data)=>uniFetch.post("/driver/tasks/truckRegistration",data)
